/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.tom.social.analyzer.graph.adapter;

import edu.uci.ics.jung.graph.Vertex;
import edu.uci.ics.jung.graph.decorators.StringLabeller;
import edu.uci.ics.jung.graph.decorators.ToolTipFunctionAdapter;

/**
 *
 * @author tom
 */
public class SNToolTipFunction extends ToolTipFunctionAdapter{
    StringLabeller strLabeler = null;

    public SNToolTipFunction(StringLabeller strLabeler) {
	this.strLabeler = strLabeler;
    }
        
    @Override
    public String getToolTipText(Vertex v) {
	return strLabeler.getLabel(v);
    }

}
